package com.archgeek.java.biz;

import cn.hutool.core.date.DateTime;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author pizhihui
 * @date 2023-12-12 11:46
 */
public class DsTaskExecRecordTest {


    public static void main(String[] args) {
        List<DsTaskExecRecord> recordList = new ArrayList<>();

        List<DateTime> dateTimeList = recordList.stream()
                .map(item -> {
                    return DateTime.of(item.getEndTime().split(" ")[1], "HH:mm:ss");
                })
                .collect(Collectors.toList());
        // 运行记录最晚的时间
        Date latestDate = Collections.max(dateTimeList);
        Date earliestDate = Collections.min(dateTimeList);

    }

}
